Part Number Hot Search : 
20D101K TF1608 TDA2653A 77721 1188MK ULA6711N NTE52 29DL3
Product Description
Full Text Search
 

To Download MCF5307AI90B Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  mcf5307um/d rev. 2.0, 08/2000 mcf5307 coldfire integrated microprocessor users manual f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
?motorola inc., 2000. all rights reserved. coldfire is a registered trademark and digitaldna is a trademark of motorola, inc. i 2 c is a registered trademark of philips semiconductors motorola reserves the right to make changes without further notice to any products herein. motorola makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does motorola assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including wi thout limitation consequential or incidental damages. ?ypical?parameters which may be provided in motorola data sheets and/or specifications c an and do vary in different applications and actual performance may vary over time. all operating parameters, including ?ypicals must be validated for each customer application by customer? technical experts. motorola does not convey any license under its pate nt rights nor the rights of others. motorola products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other applic ation in which the failure of the motorola product could create a situation where personal injury or death may occur. should buyer purch ase or use motorola products for any such unintended or unauthorized application, buyer shall indemnify and hold motorola and its offi cers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that motorola was negligent regarding the design or manufacture of the part. motor ola and are registered trademarks of motorola, inc. motorola, inc. is an equal opportunity/affirmative action employer. how to reach us: usa/europe/locations not listed: motorola literature distribution; p.o. box 5405, denver, colorado 80217. 1?03?75?140 or 1?00?41?447 japan: motorola japan ltd.; sps, technical information center, 3?0?, minami?zabu. minato?u, tokyo 106?573 japan. 81??440?569 asia/pacific: motorola semiconductors h.k. ltd.; silicon harbour centre, 2 dai king street, tai po industrial estate, tai po, n.t., hong kong. 852?6668334 technical information center: 1?00?21?274 home page: http://www.motorola.com/semiconductors document comments : fax (512) 895-2638, attn: risc applications engineering world wide web addresses : http://www.motorola.com/powerpc http://www.motorola.com/netcomm http://www.motorola.com/coldfire f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
1 2 3 4 5 7 8 9 10 11 12 13 14 15 16 17 18 19 a part ii part iv part iii 6 glo ind part i overview coldfire core hardware multiply/accumulate (mac) unit local memory debug support sim overview phase-locked loop (pll) i 2 c module interrupt controller chip-select module synchronous/asynchronous dram controller module dma controller module timer module uart modules parallel port (general-purpose i/o) mechanical data signal descriptions bus operation ieee 1149.1 test access port (jtag) electrical specifications part i: mcf5307 processor core part ii: system integration module ( sim) part iv: hardware interface part iii: peripheral module glossary of terms and abbreviations index appendix: memory map b 20 glo ind ind f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
overview coldfire core hardware multiply/accumulate (mac) unit local memory debug support sim overview phase-locked loop (pll) i 2 c module interrupt controller chip-select module synchronous/asynchronous dram controller module dma controller module timer module uart modules parallel port (general-purpose i/o) mechanical data signal descriptions bus operation ieee 1149.1 test access port (jtag) electrical specifications part i: mcf5307 processor core part ii: system integration module ( sim) part iv: hardware interface part iii: peripheral module glossary of terms and abbreviations index appendix b: memory map 1 2 3 4 5 7 8 9 10 11 12 13 14 15 16 17 18 19 a part ii part iv part iii 6 part i 20 glo ind f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
contents paragraph number title page number contents v about this book chapter 1 overview 1.1 features ............................................................................................................... 1-1 1.2 mcf5307 features.............................................................................................. 1-4 1.2.1 process ............................................................................................................ 1-6 1.3 coldfire module description ............................................................................. 1-7 1.3.1 coldfire core ................................................................................................. 1-7 1.3.1.1 instruction fetch pipeline (ifp).................................................................. 1-7 1.3.1.2 operand execution pipeline (oep) ............................................................ 1-7 1.3.1.3 mac module.............................................................................................. 1-7 1.3.1.4 integer divide module................................................................................ 1-7 1.3.1.5 8-kbyte unified cache ............................................................................... 1-8 1.3.1.6 internal 4-kbyte sram ............................................................................. 1-8 1.3.2 dram controller ........................................................................................... 1-8 1.3.3 dma controller.............................................................................................. 1-8 1.3.4 uart modules............................................................................................... 1-8 1.3.5 timer module ................................................................................................. 1-9 1.3.6 i2c module ..................................................................................................... 1-9 1.3.7 system interface ........................................................................................... 1-10 1.3.7.1 external bus interface .............................................................................. 1-10 1.3.7.2 chip selects .............................................................................................. 1-10 1.3.7.3 16-bit parallel port interface .................................................................... 1-10 1.3.7.4 interrupt controller ................................................................................... 1-10 1.3.7.5 jtag......................................................................................................... 1-11 1.3.8 system debug interface................................................................................ 1-11 1.3.9 pll module.................................................................................................. 1-11 1.4 programming model, addressing modes, and instruction set......................... 1-12 1.4.1 programming model ..................................................................................... 1-13 1.4.2 user registers ............................................................................................... 1-14 1.4.3 supervisor registers ..................................................................................... 1-14 1.4.4 instruction set ............................................................................................... 1-15 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
vi mcf5307 users manual contents paragraph number title page number part i mcf5407 processor core chapter 2 coldfire core 2.1 features and enhancements.............................................................................. 2-21 2.1.1 clock-multiplied microprocessor core........................................................ 2-22 2.1.2 enhanced pipelines ....................................................................................... 2-22 2.1.2.1 instruction fetch pipeline (ifp)................................................................ 2-23 2.1.2.1.1 branch acceleration ............................................................................. 2-23 2.1.2.2 operand execution pipeline (oep) .......................................................... 2-24 2.1.2.2.1 illegal opcode handling....................................................................... 2-24 2.1.2.2.2 hardware multiply/accumulate (mac) unit ...................................... 2-24 2.1.2.2.3 hardware divide unit .......................................................................... 2-25 2.1.3 debug module enhancements ...................................................................... 2-25 2.2 programming model ......................................................................................... 2-26 2.2.1 user programming model ............................................................................ 2-27 2.2.1.1 data registers (d0?d7) ........................................................................... 2-27 2.2.1.2 address registers (a0?a6) ...................................................................... 2-27 2.2.1.3 stack pointer (a7, sp).............................................................................. 2-28 2.2.1.4 program counter (pc) .............................................................................. 2-28 2.2.1.5 condition code register (ccr)............................................................... 2-28 2.2.2 supervisor programming model................................................................... 2-29 2.2.2.1 status register (sr).................................................................................. 2-29 2.2.2.2 vector base register (vbr) .................................................................... 2-30 2.2.2.3 cache control register (cacr) .............................................................. 2-30 2.2.2.4 access control registers (acr0?acr1)................................................ 2-31 2.2.2.5 ram base address register (rambar) ............................................... 2-31 2.2.2.6 module base address register (mbar) ................................................. 2-31 2.3 integer data formats......................................................................................... 2-31 2.4 organization of data in registers..................................................................... 2-31 2.4.1 organization of integer data formats in registers ...................................... 2-31 2.4.2 organization of integer data formats in memory ....................................... 2-32 2.5 addressing mode summary ............................................................................. 2-33 2.6 instruction set summary................................................................................... 2-34 2.6.1 instruction set summary .............................................................................. 2-37 2.7 instruction timing ............................................................................................ 2-40 2.7.1 move instruction execution times ............................................................ 2-41 2.7.2 execution timings?one-operand instructions .......................................... 2-43 2.7.3 execution timings?two-operand instructions.......................................... 2-43 2.7.4 miscellaneous instruction execution times................................................. 2-45 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
contents paragraph number title page number contents vii 2.7.5 branch instruction execution times ............................................................ 2-46 2.8 exception processing overview ....................................................................... 2-47 2.8.1 exception stack frame definition................................................................ 2-49 2.8.2 processor exceptions .................................................................................... 2-50 chapter 3 hardware multiply/accumulate (mac) unit 3.1 overview............................................................................................................. 3-1 3.1.1 mac programming model............................................................................. 3-2 3.1.2 general operation........................................................................................... 3-3 3.1.3 mac instruction set summary ...................................................................... 3-4 3.1.4 data representation........................................................................................ 3-4 3.2 mac instruction execution timings.................................................................. 3-5 chapter 4 local memory 4.1 interactions between local memory modules ................................................... 4-1 4.2 sram overview ................................................................................................ 4-1 4.3 sram operation ................................................................................................ 4-2 4.4 sram programming model............................................................................... 4-3 4.4.1 sram base address register (rambar)................................................... 4-3 4.5 sram initialization............................................................................................ 4-4 4.5.1 sram initialization code .............................................................................. 4-5 4.6 power management ............................................................................................ 4-6 4.7 cache overview.................................................................................................. 4-6 4.8 cache organization............................................................................................. 4-7 4.8.1 cache line states: invalid, valid-unmodified, and valid-modified............. 4-8 4.8.2 the cache at start-up..................................................................................... 4-9 4.9 cache operation................................................................................................ 4-11 4.9.1 caching modes ............................................................................................. 4-13 4.9.1.1 cacheable accesses .................................................................................. 4-13 4.9.1.2 write-through mode ............................................................................... 4-14 4.9.1.3 copyback mode ....................................................................................... 4-14 4.9.2 cache-inhibited accesses ............................................................................. 4-14 4.9.3 cache protocol.............................................................................................. 4-15 4.9.3.1 read miss ................................................................................................. 4-15 4.9.3.2 write miss ............................................................................................... 4-16 4.9.3.3 read hit .................................................................................................... 4-16 4.9.3.4 write hit .................................................................................................. 4-16 4.9.4 cache coherency ......................................................................................... 4-17 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
viii mcf5307 users manual contents paragraph number title page number 4.9.5 memory accesses for cache maintenance................................................... 4-17 4.9.5.1 cache filling............................................................................................. 4-17 4.9.5.2 cache pushes ............................................................................................ 4-18 4.9.5.2.1 push and store buffers ......................................................................... 4-18 4.9.5.2.2 push and store buffer bus operation................................................... 4-18 4.9.6 cache locking .............................................................................................. 4-19 4.10 cache registers................................................................................................. 4-21 4.10.1 cache control register (cacr) .................................................................. 4-21 4.10.2 access control registers (acr0?acr1).................................................... 4-22 4.11 cache management........................................................................................... 4-24 4.12 cache operation summary ............................................................................... 4-25 4.12.1 cache state transitions ................................................................................ 4-25 4.13 cache initialization code.................................................................................. 4-29 chapter 5 debug support 5.1 overview............................................................................................................. 5-1 5.2 signal description............................................................................................... 5-2 5.3 real-time trace support.................................................................................... 5-3 5.3.1 begin execution of taken branch (pst = 0x5) ............................................. 5-4 5.4 programming model ........................................................................................... 5-5 5.4.1 address attribute trigger register (aatr) .................................................. 5-7 5.4.2 address breakpoint registers (ablr, abhr) ............................................ 5-8 5.4.3 bdm address attribute register (baar)..................................................... 5-9 5.4.4 configuration/status register (csr)............................................................ 5-10 5.4.5 data breakpoint/mask registers (dbr, dbmr)......................................... 5-12 5.4.6 program counter breakpoint/mask registers (pbr, pbmr)...................... 5-13 5.4.7 trigger definition register (tdr) ............................................................... 5-14 5.5 background debug mode (bdm) .................................................................... 5-16 5.5.1 cpu halt....................................................................................................... 5-16 5.5.2 bdm serial interface.................................................................................... 5-17 5.5.2.1 receive packet format ............................................................................. 5-19 5.5.2.2 transmit packet format............................................................................ 5-19 5.5.3 bdm command set...................................................................................... 5-19 5.5.3.1 coldfire bdm command format............................................................ 5-20 5.5.3.1.1 extension words as required............................................................... 5-21 5.5.3.2 command sequence diagrams................................................................. 5-21 5.5.3.3 command set descriptions ...................................................................... 5-23 5.5.3.3.1 read a/d register ( rareg / rdreg ) ..................................................... 5-24 5.5.3.3.2 write a/d register ( wareg / wdreg )................................................... 5-25 5.5.3.3.3 read memory location ( read )............................................................ 5-26 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
contents paragraph number title page number contents ix 5.5.3.3.4 write memory location ( write ) ......................................................... 5-27 5.5.3.3.5 dump memory block ( dump ) .............................................................. 5-29 5.5.3.3.6 fill memory block ( fill ) ..................................................................... 5-31 5.5.3.3.7 resume execution ( go )........................................................................ 5-33 5.5.3.3.8 no operation ( nop ) .............................................................................. 5-34 5.5.3.3.9 synchronize pc to the pst/ddata lines ( sync _ pc ) ....................... 5-35 5.5.3.3.10 read control register ( rcreg ) ............................................................ 5-36 5.5.3.3.11 write control register ( wcreg ) .......................................................... 5-37 5.5.3.3.12 read debug module register ( rdmreg ) ............................................. 5-38 5.5.3.3.13 write debug module register ( wdmreg ) ........................................... 5-39 5.6 real-time debug support ................................................................................ 5-39 5.6.1 theory of operation...................................................................................... 5-40 5.6.1.1 emulator mode ......................................................................................... 5-41 5.6.2 concurrent bdm and processor operation .................................................. 5-41 5.7 motorola-recommended bdm pinout............................................................. 5-42 5.8 processor status, ddata definition............................................................... 5-42 5.8.1 user instruction set ...................................................................................... 5-43 5.8.2 supervisor instruction set............................................................................. 5-46 part ii system integration module (sim) chapter 6 sim overview 6.1 features ............................................................................................................... 6-1 6.2 programming model ........................................................................................... 6-3 6.2.1 sim register memory map............................................................................ 6-3 6.2.2 module base address register (mbar) ....................................................... 6-4 6.2.3 reset status register (rsr) ........................................................................... 6-5 6.2.4 software watchdog timer.............................................................................. 6-6 6.2.5 system protection control register (sypcr) ............................................... 6-8 6.2.6 software watchdog interrupt vector register (swivr)............................... 6-9 6.2.7 software watchdog service register (swsr)............................................... 6-9 6.2.8 pll clock control for cpu stop instruction ............................................ 6-10 6.2.9 pin assignment register (par) ................................................................... 6-10 6.2.10 bus arbitration control ................................................................................ 6-11 6.2.10.1 default bus master park register (mpark) .......................................... 6-11 6.2.10.1.1 arbitration for internally generated transfers (mpark[park])...... 6-12 6.2.10.1.2 arbitration between internal and external masters for accessing internal resources ......................................................... 6-14 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
x mcf5307 users manual contents paragraph number title page number chapter 7 phase-locked loop (pll) 7.1 overview............................................................................................................. 7-1 7.1.1 pll:pclk ratios........................................................................................... 7-2 7.2 pll operation .................................................................................................... 7-2 7.2.1 reset/initialization .......................................................................................... 7-2 7.2.2 normal mode.................................................................................................. 7-2 7.2.3 reduced-power mode..................................................................................... 7-2 7.2.4 pll control register (pllcr)...................................................................... 7-3 7.3 pll port list ...................................................................................................... 7-3 7.4 timing relationships .......................................................................................... 7-4 7.4.1 pclk, pstclk, and bclko ....................................................................... 7-4 7.4.2 rsti timing ................................................................................................... 7-5 7.5 pll power supply filter circuit ........................................................................ 7-6 chapter 8 i 2 c module 8.1 overview............................................................................................................. 8-1 8.2 interface features................................................................................................ 8-1 8.3 i 2 c system configuration................................................................................... 8-3 8.4 i 2 c protocol ........................................................................................................ 8-3 8.4.1 arbitration procedure ..................................................................................... 8-4 8.4.2 clock synchronization.................................................................................... 8-5 8.4.3 handshaking ................................................................................................... 8-5 8.4.4 clock stretching ............................................................................................. 8-5 8.5 programming model ........................................................................................... 8-6 8.5.1 i 2 c address register (iadr) ......................................................................... 8-6 8.5.2 i 2 c frequency divider register (ifdr)......................................................... 8-7 8.5.3 i 2 c control register (i2cr) ........................................................................... 8-8 8.5.4 i 2 c status register (i2sr).............................................................................. 8-9 8.5.5 i 2 c data i/o register (i2dr) ....................................................................... 8-10 8.6 i 2 c programming examples ............................................................................. 8-10 8.6.1 initialization sequence.................................................................................. 8-10 8.6.2 generation of start................................................................................... 8-10 8.6.3 post-transfer software response................................................................. 8-11 8.6.4 generation of stop...................................................................................... 8-12 8.6.5 generation of repeated start................................................................... 8-12 8.6.6 slave mode ................................................................................................... 8-13 8.6.7 arbitration lost............................................................................................. 8-13 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
contents paragraph number title page number contents xi chapter 9 interrupt controller 9.1 overview............................................................................................................. 9-1 9.2 interrupt controller registers ............................................................................. 9-2 9.2.1 interrupt control registers (icr0?icr9) ...................................................... 9-3 9.2.2 autovector register (avr) ............................................................................ 9-5 9.2.3 interrupt pending and mask registers (ipr and imr)................................... 9-6 9.2.4 interrupt port assignment register (irqpar) .............................................. 9-7 chapter 10 chip-select module 10.1 overview........................................................................................................... 10-1 10.2 chip-select module signals ............................................................................. 10-1 10.3 chip-select operation....................................................................................... 10-2 10.3.1 general chip-select operation..................................................................... 10-3 10.3.1.1 8-, 16-, and 32-bit port sizing.................................................................. 10-4 10.3.1.2 global chip-select operation................................................................... 10-4 10.4 chip-select registers........................................................................................ 10-5 10.4.1 chip-select module registers ...................................................................... 10-6 10.4.1.1 chip-select address registers (csar0?csar7)................................... 10-6 10.4.1.2 chip-select mask registers (csmr0?csmr7)...................................... 10-6 10.4.1.3 chip-select control registers (cscr0?cscr7) .................................... 10-8 10.4.1.4 code example........................................................................................... 10-9 chapter 11 synchronous/asynchronous dram controller module 11.1 overview........................................................................................................... 11-1 11.1.1 definitions .................................................................................................... 11-2 11.1.2 block diagram and major components ....................................................... 11-2 11.2 dram controller operation ............................................................................ 11-3 11.2.1 dram controller registers ......................................................................... 11-3 11.3 asynchronous operation .................................................................................. 11-4 11.3.1 dram controller signals in asynchronous mode...................................... 11-4 11.3.2 asynchronous register set........................................................................... 11-4 11.3.2.1 dram control register (dcr) in asynchronous mode ........................ 11-4 11.3.2.2 dram address and control registers (dacr0/dacr1) ..................... 11-5 11.3.2.3 dram controller mask registers (dmr0/dmr1) ................................ 11-7 11.3.3 general asynchronous operation guidelines .............................................. 11-8 11.3.3.1 non-page-mode operation..................................................................... 11-11 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
xii mcf5307 users manual contents paragraph number title page number 11.3.3.2 burst page-mode operation ................................................................... 11-12 11.3.3.3 continuous page mode........................................................................... 11-13 11.3.3.4 extended data out (edo) operation..................................................... 11-15 11.3.3.5 refresh operation ................................................................................... 11-16 11.4 synchronous operation................................................................................... 11-16 11.4.1 dram controller signals in synchronous mode...................................... 11-17 11.4.2 using edge select (edgesel) ................................................................. 11-18 11.4.3 synchronous register set ........................................................................... 11-19 11.4.3.1 dram control register (dcr) in synchronous mode.......................... 11-19 11.4.3.2 dram address and control registers (dacr0/dacr1) in synchronous mode ......................................................................... 11-20 11.4.3.3 dram controller mask registers (dmr0/dmr1) .............................. 11-22 11.4.4 general synchronous operation guidelines............................................... 11-23 11.4.4.1 address multiplexing ............................................................................. 11-23 11.4.4.2 interfacing example................................................................................ 11-27 11.4.4.3 burst page mode..................................................................................... 11-27 11.4.4.4 continuous page mode........................................................................... 11-29 11.4.4.5 auto-refresh operation.......................................................................... 11-31 11.4.4.6 self-refresh operation ........................................................................... 11-32 11.4.5 initialization sequence................................................................................ 11-33 11.4.5.1 mode register settings........................................................................... 11-33 11.5 sdram example ........................................................................................... 11-34 11.5.1 sdram interface configuration................................................................ 11-35 11.5.2 dcr initialization....................................................................................... 11-35 11.5.3 dacr initialization.................................................................................... 11-35 11.5.4 dmr initialization...................................................................................... 11-37 11.5.5 mode register initialization ....................................................................... 11-38 11.5.6 initialization code....................................................................................... 11-39 part iii peripheral module chapter 12 dma controller module 12.1 overview........................................................................................................... 12-1 12.1.1 dma module features ................................................................................. 12-2 12.2 dma signal description .................................................................................. 12-2 12.3 dma transfer overview.................................................................................. 12-3 12.4 dma controller module programming model................................................ 12-4 12.4.1 source address registers (sar0?sar3) .................................................... 12-6 12.4.2 destination address registers (dar0?dar3) ........................................... 12-7 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
contents paragraph number title page number contents xiii 12.4.3 byte count registers (bcr0?bcr3)........................................................... 12-7 12.4.4 dma control registers (dcr0?dcr3)...................................................... 12-8 12.4.5 dma status registers (dsr0?dsr3) ....................................................... 12-10 12.4.6 dma interrupt vector registers (divr0?divr3) ................................... 12-11 12.5 dma controller module functional description........................................... 12-11 12.5.1 transfer requests (cycle-steal and continuous modes) ........................... 12-12 12.5.2 data transfer modes .................................................................................. 12-12 12.5.2.1 dual-address transfers .......................................................................... 12-12 12.5.2.2 single-address transfers........................................................................ 12-13 12.5.3 channel initialization and startup .............................................................. 12-13 12.5.3.1 channel prioritization ............................................................................. 12-13 12.5.3.2 programming the dma controller module ........................................... 12-13 12.5.4 data transfer .............................................................................................. 12-14 12.5.4.1 external request and acknowledge operation ...................................... 12-14 12.5.4.2 auto-alignment...................................................................................... 12-17 12.5.4.3 bandwidth control.................................................................................. 12-18 12.5.5 termination................................................................................................. 12-18 chapter 13 timer module 13.1 overview........................................................................................................... 13-1 13.1.1 key features ................................................................................................. 13-2 13.2 general-purpose timer units ........................................................................... 13-2 13.3 general-purpose timer programming model .................................................. 13-2 13.3.1 timer mode registers (tmr0/tmr1) ........................................................ 13-3 13.3.2 timer reference registers (trr0/trr1) ................................................... 13-4 13.3.3 timer capture registers (tcr0/tcr1)....................................................... 13-4 13.3.4 timer counters (tcn0/tcn1) .................................................................... 13-5 13.3.5 timer event registers (ter0/ter1)........................................................... 13-5 13.4 code example................................................................................................... 13-6 13.5 calculating time-out values ........................................................................... 13-7 chapter 14 uart modules 14.1 overview........................................................................................................... 14-1 14.2 serial module overview ................................................................................... 14-2 14.3 register descriptions ........................................................................................ 14-2 14.3.1 uart mode registers 1 (umr1n).............................................................. 14-4 14.3.2 uart mode register 2 (umr2n) ............................................................... 14-6 14.3.3 uart status registers (usrn) ................................................................... 14-7 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
xiv mcf5307 users manual contents paragraph number title page number 14.3.4 uart clock-select registers (ucsrn)...................................................... 14-8 14.3.5 uart command registers (ucrn) ............................................................ 14-9 14.3.6 uart receiver buffers (urbn) ............................................................... 14-11 14.3.7 uart transmitter buffers (utbn) ........................................................... 14-11 14.3.8 uart input port change registers (uipcrn).......................................... 14-12 14.3.9 uart auxiliary control register (uacrn)............................................. 14-12 14.3.10 uart interrupt status/mask registers (uisrn/uimrn).......................... 14-13 14.3.11 uart divider upper/lower registers (udun/udln) ............................ 14-14 14.3.12 uart interrupt vector register (uivrn)................................................. 14-15 14.3.13 uart input port register (uipn) .............................................................. 14-15 14.3.14 uart output port command registers (uop1n/uop0n) ....................... 14-15 14.4 uart module signal definitions .................................................................. 14-16 14.5 operation......................................................................................................... 14-18 14.5.1 transmitter/receiver clock source............................................................ 14-18 14.5.1.1 programmable divider............................................................................ 14-18 14.5.1.2 calculating baud rates........................................................................... 14-19 14.5.1.2.1 bclko baud rates ........................................................................... 14-19 14.5.1.2.2 external clock .................................................................................... 14-19 14.5.2 transmitter and receiver operating modes............................................... 14-19 14.5.2.1 transmitting ........................................................................................... 14-21 14.5.2.2 receiver .................................................................................................. 14-22 14.5.2.3 fifo stack ............................................................................................. 14-24 14.5.3 looping modes ........................................................................................... 14-25 14.5.3.1 automatic echo mode ............................................................................ 14-25 14.5.3.2 local loop-back mode .......................................................................... 14-25 14.5.3.3 remote loop-back mode....................................................................... 14-26 14.5.4 multidrop mode.......................................................................................... 14-26 14.5.5 bus operation ............................................................................................. 14-28 14.5.5.1 read cycles ............................................................................................ 14-28 14.5.5.2 write cycles ........................................................................................... 14-28 14.5.5.3 interrupt acknowledge cycles ............................................................... 14-28 14.5.6 programming .............................................................................................. 14-28 14.5.6.1 uart module initialization sequence .................................................. 14-29 chapter 15 parallel port (general-purpose i/o) 15.1 parallel port operation...................................................................................... 15-1 15.1.1 pin assignment register (par) ................................................................... 15-1 15.1.2 port a data direction register (paddr).................................................... 15-2 15.1.3 port a data register (padat) .................................................................... 15-2 15.1.4 code example............................................................................................... 15-3 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
contents paragraph number title page number contents xv part iv hardware interface chapter 16 mechanical data 16.1 package ............................................................................................................. 16-1 16.2 pinout ................................................................................................................ 16-1 16.3 mechanical diagram......................................................................................... 16-8 16.4 case drawing.................................................................................................... 16-9 chapter 17 signal descriptions 17.1 overview........................................................................................................... 17-1 17.2 mcf5307 bus signals ...................................................................................... 17-7 17.2.1 address bus .................................................................................................. 17-7 17.2.1.1 address bus (a[23:0]).............................................................................. 17-7 17.2.1.2 address bus (a[31:24]/pp[15:8]) ............................................................ 17-7 17.2.2 data bus (d[31:0]) ....................................................................................... 17-8 17.2.3 read/write (r/w )......................................................................................... 17-8 17.2.4 size (siz[1:0]) .............................................................................................. 17-8 17.2.5 transfer start (ts ) ........................................................................................ 17-9 17.2.6 address strobe (as) ..................................................................................... 17-9 17.2.7 transfer acknowledge (t a ) ......................................................................... 17-9 17.2.8 transfer in progress (tip /pp7)................................................................... 17-10 17.2.9 transfer type (tt[1:0]/pp[1:0]) ................................................................ 17-10 17.2.10 transfer modifier (tm[2:0]/pp[4:2])......................................................... 17-10 17.3 interrupt control signals................................................................................. 17-12 17.3.1 interrupt request (irq1 /irq2 , irq3 /irq6 , irq5 /irq4 , and irq7 )....... 17-12 17.4 bus arbitration signals................................................................................... 17-12 17.4.1 bus request (br ) ....................................................................................... 17-12 17.4.2 bus grant (bg ).......................................................................................... 17-12 17.4.3 bus driven (bd)......................................................................................... 17-13 17.5 clock and reset signals.................................................................................. 17-13 17.5.1 reset in (rsti )........................................................................................... 17-13 17.5.2 clock input (clkin).................................................................................. 17-13 17.5.3 bus clock output (bclko) ...................................................................... 17-13 17.5.4 reset out (rsto)....................................................................................... 17-13 17.5.5 data/configuration pins (d[7:0]) ............................................................... 17-13 17.5.5.1 d[7:5boot chip-select (cs0 ) configuration ......................................... 17-14 17.5.5.2 d7?auto acknowledge configuration (aa_config) ...................... 17-14 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
xvi mcf5307 users manual contents paragraph number title page number 17.5.5.3 d[6:5]?port size configuration (ps_config[1:0]) ........................... 17-14 17.5.6 d4?address configuration (addr_config) ....................................... 17-14 17.5.7 d[3:2]?frequency control pll (freq[1:0] ..........................................) 17-15 17.5.8 d[1:0]?divide control pclk to bclko (divide[1:0])....................... 17-15 17.6 chip-select module signals ........................................................................... 17-15 17.6.1 chip-select (cs[7:0]) ................................................................................. 17-16 17.6.2 byte enables/byte write enables (be[3:0]/bwe[3:0]) ............................ 17-16 17.6.3 output enable (oe) .................................................................................... 17-16 17.7 dram controller signals .............................................................................. 17-16 17.7.1 row address strobes (ras[1:0])............................................................... 17-16 17.7.2 column address strobes (cas[3:0]) ......................................................... 17-16 17.7.3 dram write (dramw)........................................................................... 17-17 17.7.4 synchronous dram column address strobe (scas) ............................. 17-17 17.7.5 synchronous dram row address strobe (sras)................................... 17-17 17.7.6 synchronous dram clock enable (scke) .............................................. 17-17 17.7.7 synchronous edge select (edgesel) ...................................................... 17-17 17.8 dma controller module signals.................................................................... 17-17 17.8.1 dma request (dreq[1:0]/pp[6:5]).......................................................... 17-18 17.9 serial module signals ..................................................................................... 17-18 17.9.1 transmitter serial data output (txd)........................................................ 17-18 17.9.2 receiver serial data input (rxd)............................................................... 17-18 17.9.3 clear to send (cts).................................................................................... 17-18 17.9.4 request to send (rts) ............................................................................... 17-18 17.10 timer module signals..................................................................................... 17-18 17.10.1 timer inputs (tin[1:0]).............................................................................. 17-19 17.10.2 timer outputs (tout1, tout0) .............................................................. 17-19 17.11 parallel i/o port (pp[15:0]) ............................................................................ 17-19 17.12 i2c module signals ........................................................................................ 17-19 17.12.1 i2c serial clock (scl)............................................................................... 17-19 17.12.2 i2c serial data (sda)................................................................................ 17-19 17.13 debug and test signals .................................................................................. 17-20 17.13.1 test mode (mtmod[3:0]) ........................................................................ 17-20 17.13.2 high impedance (hiz )................................................................................ 17-20 17.13.3 processor clock output (pstclk)............................................................ 17-20 17.13.4 debug data (ddata[3:0])........................................................................ 17-20 17.13.5 processor status (pst[3:0])........................................................................ 17-20 17.14 debug module/jtag signals......................................................................... 17-21 17.14.1 test reset/development serial clock (trst /dsclk) ............................ 17-21 17.14.2 test mode select/breakpoint (tms/bkpt ) .............................................. 17-22 17.14.3 test data input/development serial input (tdi/dsi) ............................... 17-22 17.14.4 test data output/development serial output (tdo/dso)....................... 17-22 17.14.5 test clock (tck) ....................................................................................... 17-23 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
contents paragraph number title page number contents xvii chapter 18 bus operation 18.1 features ............................................................................................................. 18-1 18.2 bus and control signals ................................................................................... 18-1 18.3 bus characteristics............................................................................................ 18-2 18.4 data transfer operation ................................................................................... 18-3 18.4.1 bus cycle execution..................................................................................... 18-4 18.4.2 data transfer cycle states ........................................................................... 18-5 18.4.3 read cycle.................................................................................................... 18-7 18.4.4 write cycle ................................................................................................... 18-8 18.4.5 fast-termination cycles............................................................................... 18-9 18.4.6 back-to-back bus cycles ........................................................................... 18-10 18.4.7 burst cycles................................................................................................ 18-11 18.4.7.1 line transfers ......................................................................................... 18-12 18.4.7.2 line read bus cycles............................................................................. 18-12 18.4.7.3 line write bus cycles............................................................................ 18-14 18.4.7.4 transfers using mixed port sizes .......................................................... 18-15 18.5 misaligned operands ...................................................................................... 18-16 18.6 bus errors ....................................................................................................... 18-17 18.7 interrupt exceptions........................................................................................ 18-17 18.7.1 level 7 interrupts........................................................................................ 18-18 18.7.2 interrupt-acknowledge cycle..................................................................... 18-19 18.8 bus arbitration................................................................................................ 18-20 18.8.1 bus arbitration signals............................................................................... 18-21 18.9 general operation of external master transfers............................................ 18-21 18.9.1 two-device bus arbitration protocol (two-wire mode) ......................... 18-25 18.9.2 multiple external bus device arbitration protocol (three-wire mode)... 18-29 18.10 reset operation............................................................................................... 18-33 18.10.1 master reset ............................................................................................... 18-34 18.10.2 software watchdog reset........................................................................... 18-35 chapter 19 ieee 1149.1 test access port (jtag) 19.1 overview........................................................................................................... 19-1 19.2 jtag signal descriptions ............................................................................... 19-2 19.3 tap controller.................................................................................................. 19-3 19.4 jtag register descriptions ............................................................................. 19-4 19.4.1 jtag instruction shift register .................................................................. 19-5 19.4.2 idcode register ......................................................................................... 19-6 19.4.3 jtag boundary-scan register .................................................................... 19-7 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
xviii mcf5307 users manual contents paragraph number title page number 19.4.4 jtag bypass register................................................................................ 19-10 19.5 restrictions ..................................................................................................... 19-10 19.6 disabling ieee standard 1149.1 operation ................................................... 19-11 19.7 obtaining the ieee standard 1149.1.............................................................. 19-12 chapter 20 electrical specifications 20.1 general parameters ........................................................................................... 20-1 20.2 clock timing specifications............................................................................. 20-2 20.3 input/output ac timing specifications........................................................... 20-3 20.4 reset timing specifications ........................................................................... 20-12 20.5 debug ac timing specifications................................................................... 20-12 20.6 timer module ac timing specifications ...................................................... 20-14 20.7 i 2 c input/output timing specifications......................................................... 20-15 20.8 uart module ac timing specifications ..................................................... 20-16 20.9 parallel port (general-purpose i/o) timing specifications ........................... 20-18 20.10 dma timing specifications........................................................................... 20-19 20.11 ieee 1149.1 (jtag) ac timing specifications ........................................... 20-20 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
illustrations figure number title page number illustrations xix 1-1 mcf5307 block diagram............................................................................................. 1-2 1-2 uart module block diagram..................................................................................... 1-9 1-3 pll module ................................................................................................................ 1- 12 1-4 coldfire mcf5307 programming model .................................................................. 1-13 2-1 coldfire enhanced pipeline ....................................................................................... 2-23 2-2 coldfire multiply-accumulate functionality diagram ............................................. 2-25 2-3 coldfire programming model.................................................................................... 2-27 2-5 status register (sr).................................................................................................... 2-30 2-6 vector base register (vbr)....................................................................................... 2-30 2-7 organization of integer data formats in data registers............................................ 2-32 2-8 organization of integer data formats in address registers ...................................... 2-32 2-9 memory operand addressing..................................................................................... 2-33 2-10 exception stack frame form...................................................................................... 2-49 3-1 coldfire mac multiplication and accumulation........................................................ 3-2 3-2 mac programming model ........................................................................................... 3-2 4-1 sram base address register (rambar) ................................................................. 4-3 4-2 unified cache organization ......................................................................................... 4-7 4-3 cache organization and line format ........................................................................... 4-8 4-4 cache?a: at reset, b: after invalidation, c and d: loading pattern ....................... 4-10 4-5 caching operation ...................................................................................................... 4-11 4-6 write-miss in copyback mode................................................................................... 4-16 4-7 cache locking ............................................................................................................ 4-2 0 4-8 cache control register (cacr) ................................................................................ 4-21 4-9 access control register format (acrn) ................................................................... 4-23 4-10 a n format .................................................................................................................. 4-24 4-11 cache line state diagram?copyback mode............................................................ 4-26 4-12 cache line state diagram?write-through mode.................................................... 4-26 5-1 processor/debug module interface............................................................................... 5-1 5-2 pstclk timing........................................................................................................... 5-3 5-3 example jmp instruction output on pst/ddata...................................................... 5-5 5-4 debug programming model ......................................................................................... 5-6 5-5 address attribute trigger register (aatr) ................................................................ 5-7 5-6 address breakpoint registers (ablr, abhr) ........................................................... 5-9 5-7 bdm address attribute register (baar)................................................................... 5-9 5-8 configuration/status register (csr).......................................................................... 5-10 5-9 data breakpoint/mask registers (dbr and dbmr)................................................. 5-12 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
illustrations figure number title page number xx mcf5307 users manual 5-10 program counter breakpoint register (pbr)............................................................. 5-14 5-11 program counter breakpoint mask register (pbmr) ............................................... 5-14 5-12 trigger definition register (tdr) ............................................................................. 5-15 5-13 bdm serial interface timing ..................................................................................... 5-18 5-14 receive bdm packet.................................................................................................. 5-19 5-15 transmit bdm packet ................................................................................................ 5-19 5-16 bdm command format ............................................................................................. 5-21 5-17 command sequence diagram..................................................................................... 5-22 5-19 rareg / rdreg command sequence............................................................................ 5-24 5-18 rareg / rdreg command format ............................................................................... 5-24 5-21 wareg / wdreg command sequence .......................................................................... 5-25 5-20 wareg / wdreg command format.............................................................................. 5-25 5-23 read command sequence.......................................................................................... 5-26 5-22 read command/result formats................................................................................. 5-26 5-24 write command format ............................................................................................ 5-27 5-25 write command sequence ........................................................................................ 5-28 5-26 dump command/result formats ................................................................................ 5-29 5-27 dump command sequence ......................................................................................... 5-30 5-28 fill command format................................................................................................ 5-31 5-29 fill command sequence............................................................................................ 5-32 5-31 go command sequence.............................................................................................. 5-33 5-30 go command format.................................................................................................. 5-33 5-33 nop command sequence ............................................................................................ 5-34 5-32 nop command format................................................................................................ 5-34 5-35 sync _ pc command sequence .................................................................................... 5-35 5-34 sync _ pc command format........................................................................................ 5-35 5-37 rcreg command sequence........................................................................................ 5-36 5-36 rcreg command/result formats............................................................................... 5-36 5-39 wcreg command sequence ....................................................................................... 5-37 5-38 wcreg command/result formats.............................................................................. 5-37 5-41 rdmreg command sequence..................................................................................... 5-38 5-40 rdmreg bdm command/result formats.................................................................... 5-38 5-43 wdmreg command sequence .................................................................................... 5-39 5-42 wdmreg bdm command format.............................................................................. 5-39 5-44 recommended bdm connector................................................................................. 5-42 6-1 sim block diagram...................................................................................................... 6-1 6-2 module base address register (mbar) ..................................................................... 6-4 6-3 reset status register (rsr) ......................................................................................... 6-5 6-4 mcf5307 embedded system recovery from unterminated access........................... 6-7 6-5 system protection control register (sypcr) ............................................................. 6-8 6-6 software watchdog interrupt vector register (swivr)............................................. 6-9 6-7 software watchdog service register (swsr)............................................................. 6-9 6-8 pin assignment register (par) ................................................................................. 6-10 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
illustrations figure number title page number illustrations xxi 6-9 default bus master register (mpark) ..................................................................... 6-11 6-10 round robin arbitration (park = 00)...................................................................... 6-12 6-11 park on master core priority (park = 01) ............................................................... 6-13 6-12 park on dma module priority (park = 10)............................................................. 6-13 6-13 park on current master priority (park = 01) ........................................................... 6-14 7-1 pll module block diagram ........................................................................................ 7-1 7-2 pll control register (pllcr).................................................................................... 7-3 7-3 clkin, pclk, pstclk, and bclko timing .......................................................... 7-5 7-4 reset and initialization timing..................................................................................... 7-6 7-5 pll power supply filter circuit .................................................................................. 7-6 8-1 i 2 c module block diagram .......................................................................................... 8-2 8-2 i 2 c standard communication protocol ........................................................................ 8-3 8-3 repeated start .......................................................................................................... 8-4 8-4 synchronized clock scl.............................................................................................. 8-5 8-5 i 2 c address register (iadr) ....................................................................................... 8-6 8-6 i 2 c frequency divider register (ifdr)....................................................................... 8-7 8-7 i 2 c control register (i2cr) ......................................................................................... 8-8 8-8 i 2 cr status register (i2sr) ......................................................................................... 8-9 8-9 i 2 c data i/o register (i2dr) ..................................................................................... 8-10 8-10 flow-chart of typical i 2 c interrupt routine ............................................................. 8-14 9-1 interrupt controller block diagram.............................................................................. 9-1 9-2 interrupt control registers (icr0?icr9) .................................................................... 9-3 9-3 autovector register (avr) .......................................................................................... 9-5 9-4 interrupt pending register (ipr) and interrupt mask register (imr) ......................... 9-7 9-5 interrupt port assignment register (irqpar) ............................................................ 9-7 10-1 connections for external memory port sizes ............................................................ 10-4 10-2 chip select address registers (csar0?csar7) ..................................................... 10-6 10-3 chip select mask registers (csmrn) ....................................................................... 10-7 10-4 chip-select control registers (cscr0?cscr7) ...................................................... 10-8 11-1 asynchronous/synchronous dram controller block diagram ............................... 11-2 11-2 dram control register (dcr) (asynchronous mode) ............................................ 11-5 11-3 dram address and control registers (dacr0/dacr1)........................................ 11-6 11-4 dram controller mask registers (dmr0 and dmr1)............................................ 11-7 11-5 basic non-page-mode operation rcd = 0, rncn = 1 (4-4-4-4) .......................... 11-11 11-6 basic non-page-mode operation rcd = 1, rncn = 0 (5-5-5-5) .......................... 11-12 11-7 burst page-mode read operation (4-3-3-3)............................................................. 11-13 11-8 burst page-mode write operation (4-3-3-3)............................................................ 11-13 11-9 continuous page-mode operation............................................................................ 11-14 11-10 write hit in continuous page mode......................................................................... 11-15 11-11 edo read operation (3-2-2-2) ................................................................................ 11-15 11-12 dram access delayed by refresh ......................................................................... 11-16 11-13 mcf5307 sdram interface.................................................................................... 11-18 11-14 using edgesel to change signal timing............................................................. 11-19 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
illustrations figure number title page number xxii mcf5307 users manual 11-15 dram control register (dcr) (synchronous mode) ............................................ 11-19 11-16 dacr0 and dacr1 registers (synchronous mode).............................................. 11-20 11-17 dram controller mask registers (dmr0 and dmr1).......................................... 11-22 11-18 burst read sdram access ..................................................................................... 11-28 11-19 burst write sdram access .................................................................................... 11-29 11-20 synchronous, continuous page-mode access?consecutive reads....................... 11-30 11-21 synchronous, continuous page-mode access?read after write........................... 11-31 11-22 auto-refresh operation............................................................................................ 11-32 11-23 self-refresh operation ............................................................................................. 11-32 11-24 mode register set (mrs) command ......................................................................... 11-34 11-25 initialization values for dcr ................................................................................... 11-35 11-26 sdram configuration............................................................................................. 11-36 11-27 dacr register configuration.................................................................................. 11-36 11-28 dmr0 register ......................................................................................................... 11-3 7 11-29 mode register mapping to mcf5307 a[31:0] ........................................................ 11-38 12-1 dma signal diagram ................................................................................................. 12-1 12-2 dual-address transfer................................................................................................ 12-3 12-3 single-address transfers............................................................................................ 12-4 12-4 source address registers (sarn) .............................................................................. 12-6 12-5 destination address registers (darn) ...................................................................... 12-7 12-6 byte count registers (bcrn)?bcr24bit = 1 ........................................................ 12-7 12-7 bcrn?bcr24bit = 0.............................................................................................. 12-8 12-8 dma control registers (dcrn) ............................................................................... 12-8 12-9 dma status registers (dsrn) ................................................................................ 12-10 12-10 dma interrupt vector registers (divrn) ............................................................... 12-11 12-11 dreq timing constraints, dual-address dma transfer....................................... 12-15 12-12 dual-address, peripheral-to-sdram, lower-priority dma transfer ................... 12-16 12-13 single-address dma transfer ................................................................................. 12-17 13-1 timer block diagram ................................................................................................. 13-1 13-2 timer mode registers (tmr0/tmr1) ...................................................................... 13-3 13-3 timer reference registers (trr0/trr1) ................................................................. 13-4 13-4 timer capture register (tcr0/tcr1) ...................................................................... 13-5 13-5 timer counters (tcn0/tcn1)................................................................................... 13-5 13-6 timer event registers (ter0/ter1)......................................................................... 13-5 14-1 simplified block diagram .......................................................................................... 14-1 14-2 uart mode registers 1 (umr1n)............................................................................ 14-5 14-3 uart mode register 2 (umr2n) ............................................................................. 14-6 14-4 uart status register (usrn) ................................................................................... 14-7 14-5 uart clock-select register (ucsrn)...................................................................... 14-8 14-6 uart command register (ucrn)............................................................................ 14-9 14-7 uart receiver buffer (urb0) ............................................................................... 14-11 14-8 uart transmitter buffer (utb0)........................................................................... 14-12 14-9 uart input port change register (uipcrn).......................................................... 14-12 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
illustrations figure number title page number illustrations xxiii 14-10 uart auxiliary control register (uacrn) ........................................................... 14-13 14-11 uart interrupt status/mask registers (uisrn/uimrn)........................................ 14-13 14-12 uart divider upper register (udun)................................................................... 14-14 14-13 uart divider lower register (udln)................................................................... 14-14 14-14 uart interrupt vector register (uivrn) ............................................................... 14-15 14-15 uart input port register (uipn) ............................................................................ 14-15 14-17 uart block diagram showing external and internal interface signals ................ 14-16 14-16 uart output port command register (uop1/uop0) ........................................... 14-16 14-18 uart/rs-232 interface ........................................................................................... 14-17 14-19 clocking source diagram......................................................................................... 14-18 14-20 transmitter and receiver functional diagram......................................................... 14-20 14-21 transmitter timing diagram .................................................................................... 14-22 14-22 receiver timing........................................................................................................ 14- 23 14-23 automatic echo ........................................................................................................ 14-2 5 14-24 local loop-back ...................................................................................................... 14-26 14-25 remote loop-back ................................................................................................... 14-26 14-26 multidrop mode timing diagram ............................................................................ 14-27 14-27 uart mode programming flowchart ..................................................................... 14-30 15-1 parallel port pin assignment register (par) ............................................................ 15-1 15-2 port a data direction register (paddr).................................................................. 15-2 15-3 port a data register (padat) .................................................................................. 15-3 16-1 mechanical diagram................................................................................................... 16-9 16-2 mcf5307 case drawing (general view) ................................................................ 16-10 16-3 case drawing (details)............................................................................................. 16-11 17-1 mcf5307 block diagram with signal interfaces ...................................................... 17-2 18-1 signal relationship to bclko for non-dram access ........................................... 18-2 18-2 connections for external memory port sizes ............................................................ 18-4 18-3 chip-select module output timing diagram ............................................................ 18-4 18-4 data transfer state transition diagram ..................................................................... 18-6 18-5 read cycle flowchart................................................................................................. 18-7 18-6 basic read bus cycle................................................................................................. 18-8 18-7 write cycle flowchart................................................................................................ 18-9 18-8 basic write bus cycle ................................................................................................ 18-9 18-9 read cycle with fast termination ........................................................................... 18-10 18-10 write cycle with fast termination........................................................................... 18-10 18-11 back-to-back bus cycles ......................................................................................... 18-11 18-12 line read burst (2-1-1-1), external termination .................................................... 18-12 18-13 line read burst (2-1-1-1), internal termination ..................................................... 18-13 18-14 line read burst (3-2-2-2), external termination .................................................... 18-13 18-15 line read burst-inhibited, fast, external termination............................................ 18-14 18-16 line write burst (2-1-1-1), internal/external termination...................................... 18-14 18-17 line write burst (3-2-2-2) with one wait state, internal termination ................... 18-15 18-18 line write burst-inhibited, internal termination .................................................... 18-15 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
illustrations figure number title page number xxiv mcf5307 users manual 18-19 longword read from an 8-bit port, external termination...................................... 18-16 18-20 longword read from an 8-bit port, internal termination ....................................... 18-16 18-21 example of a misaligned longword transfer (32-bit port) .................................... 18-17 18-22 example of a misaligned word transfer (32-bit port) ............................................ 18-17 18-23 interrupt-acknowledge cycle flowchart ................................................................. 18-20 18-24 basic no-wait-state external master access .......................................................... 18-22 18-25 external master burst line access to 32-bit port.................................................... 18-24 18-26 mcf5307 two-wire mode bus arbitration interface............................................. 18-25 18-27 two-wire bus arbitration with bus request asserted............................................ 18-26 18-28 two-wire implicit and explicit bus mastership...................................................... 18-27 18-29 mcf5307 two-wire bus arbitration protocol state diagram................................ 18-28 18-30 three-wire implicit and explicit bus mastership.................................................... 18-30 18-31 three-wire bus arbitration...................................................................................... 18-31 18-32 three-wire bus arbitration protocol state diagram ............................................... 18-32 18-33 master reset timing................................................................................................. 18-34 18-34 software watchdog reset timing ............................................................................ 18-36 19-1 jtag test logic block diagram ............................................................................... 19-2 19-2 jtag tap controller state machine......................................................................... 19-4 19-4 disabling jtag in jtag mode ............................................................................... 19-11 19-5 disabling jtag in debug mode .............................................................................. 19-11 20-1 clock timing .............................................................................................................. 2 0-3 20-2 pstclk timing......................................................................................................... 20-3 20-3 ac timings?normal read and write bus cycles ................................................... 20-5 20-4 sdram read cycle with edgesel tied to buffered bclko.............................. 20-6 20-5 sdram write cycle with edgesel tied to buffered bclko............................. 20-7 20-6 sdram read cycle with edgesel tied high....................................................... 20-8 20-7 sdram write cycle with edgesel tied high...................................................... 20-9 20-8 sdram read cycle with edgesel tied low ..................................................... 20-10 20-9 sdram write cycle with edgesel tied low .................................................... 20-11 20-10 ac output timing?high impedance...................................................................... 20-11 20-11 reset timing............................................................................................................. 2 0-12 20-12 real-time trace ac timing .................................................................................... 20-13 20-13 bdm serial port ac timing .................................................................................... 20-13 20-14 timer module ac timing ........................................................................................ 20-14 20-15 i 2 c input/output timings......................................................................................... 20-16 20-16 uart0/1 module ac timing?uart mode......................................................... 20-17 20-17 general-purpose i/o timing..................................................................................... 20-18 20-18 dma timing ............................................................................................................ 20-1 9 20-19 ieee 1149.1 (jtag) ac timing ............................................................................. 20-21 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
tables xxv tables table number title page number 1-1 user-level registers................................................................................................... 1-14 1-2 supervisor-level registers......................................................................................... 1-14 2-1 ccr field descriptions ............................................................................................. 2-28 2-2 movec register map ............................................................................................... 2-29 2-3 status field descriptions ............................................................................................ 2-30 2-4 integer data formats................................................................................................... 2-31 2-5 coldfire effective addressing modes........................................................................ 2-34 2-6 notational conventions .............................................................................................. 2-34 2-7 user-mode instruction set summary ......................................................................... 2-37 2-8 supervisor-mode instruction set summary................................................................ 2-40 2-9 misaligned operand references ................................................................................. 2-41 2-10 move byte and word execution times...................................................................... 2-42 2-11 move long execution times...................................................................................... 2-42 2-12 mac move execution times..................................................................................... 2-43 2-13 one-operand instruction execution times ................................................................ 2-43 2-14 two-operand instruction execution times................................................................ 2-44 2-15 miscellaneous instruction execution times............................................................... 2-45 2-16 general branch instruction execution times............................................................. 2-46 2-17 bcc instruction execution times................................................................................ 2-47 2-18 exception vector assignments................................................................................... 2-48 2-19 format field encoding ............................................................................................... 2-49 2-20 fault status encodings................................................................................................ 2-50 2-21 mcf5307 exceptions ................................................................................................. 2-50 3-1 mac instruction summary........................................................................................... 3-4 3-2 two-operand mac instruction execution times ....................................................... 3-5 3-3 mac move instruction execution times..................................................................... 3-6 4-1 rambar field description ........................................................................................ 4-3 4-2 examples of typical rambar settings ..................................................................... 4-6 4-3 valid and modified bit settings ................................................................................... 4-8 4-4 cacr field descriptions ........................................................................................... 4-21 4-5 acrn field descriptions............................................................................................ 4-23 4-6 cache line state transitions ...................................................................................... 4-27 4-7 cache line state transitions (current state invalid) ................................................. 4-28 4-8 cache line state transitions (current state valid) ................................................... 4-28 4-9 cache line state transitions (current state modified) ............................................. 4-29 5-1 debug module signals.................................................................................................. 5-2 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
xxvi mcf5307 users manual tables table number title page number 5-2 processor status encoding............................................................................................ 5-4 5-3 bdm/breakpoint registers........................................................................................... 5-7 5-4 aatr field descriptions ............................................................................................. 5-8 5-5 ablr field description ............................................................................................... 5-9 5-6 abhr field description............................................................................................... 5-9 5-7 baar field descriptions ........................................................................................... 5-10 5-8 csr field descriptions .............................................................................................. 5-11 5-9 dbr field descriptions.............................................................................................. 5-13 5-10 dbmr field descriptions .......................................................................................... 5-13 5-11 access size and operand data location .................................................................... 5-13 5-12 pbr field descriptions .............................................................................................. 5-14 5-13 pbmr field descriptions ........................................................................................... 5-14 5-14 tdr field descriptions .............................................................................................. 5-15 5-15 receive bdm packet field description ..................................................................... 5-19 5-16 transmit bdm packet field description ................................................................... 5-19 5-17 bdm command summary ......................................................................................... 5-20 5-18 bdm field descriptions ............................................................................................. 5-21 5-19 control register map.................................................................................................. 5-36 5-20 definition of drc encoding?read........................................................................... 5-38 5-21 ddata[3:0]/csr[bstat] breakpoint response.................................................... 5-40 5-22 pst/ddata specification for user-mode instructions............................................ 5-43 5-23 pst/ddata specification for supervisor-mode instructions.................................. 5-46 6-1 sim registers ............................................................................................................. . 6-3 6-2 mbar field descriptions ............................................................................................ 6-5 6-3 rsr field descriptions ................................................................................................ 6-6 6-4 sypcr field descriptions ........................................................................................... 6-8 6-5 pllipl settings ......................................................................................................... 6-10 6-6 mpark field descriptions........................................................................................ 6-11 7-1 pllcr field descriptions............................................................................................ 7-3 7-2 pll module input signals............................................................................................ 7-3 7-3 pll module output signals ......................................................................................... 7-4 8-1 i 2 c interface memory map........................................................................................... 8-6 8-2 i 2 c address register field descriptions ...................................................................... 8-6 8-3 ifdr field descriptions ............................................................................................... 8-7 8-4 i 2 cr field descriptions................................................................................................ 8-8 8-5 i 2 sr field descriptions ................................................................................................ 8-9 9-1 interrupt controller registers ....................................................................................... 9-2 9-2 interrupt control registers ........................................................................................... 9-2 9-3 icr n field descriptions ............................................................................................... 9-3 9-4 interrupt priority scheme.............................................................................................. 9-4 9-5 avr field descriptions................................................................................................ 9-6 9-6 autovector register bit assignments........................................................................... 9-6 9-7 ipr and imr field descriptions................................................................................... 9-7 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
tables xxvii tables table number title page number 9-8 irqpar field descriptions ......................................................................................... 9-8 10-1 chip-select module signals ....................................................................................... 10-1 10-2 byte enables/byte write enable signal settings ....................................................... 10-2 10-3 accesses by matches in cscrs and dacrs ............................................................. 10-3 10-4 d7/aa, automatic acknowledge of boot cs0.......................................................... 10-4 10-5 d[6:5]/ps[1:0], port size of boot cs0 ....................................................................... 10-4 10-6 chip-select registers.................................................................................................. 10-5 10-7 csar n field description ........................................................................................... 10-6 10-8 csmr n field descriptions ......................................................................................... 10-7 10-9 cscr n field descriptions.......................................................................................... 10-8 11-1 dram controller registers ....................................................................................... 11-3 11-2 sdram signal summary ......................................................................................... 11-4 11-3 dcr field descriptions (asynchronous mode)......................................................... 11-5 11-4 dacr0/dacr1 field description ............................................................................ 11-6 11-5 dmr0/dmr1 field descriptions............................................................................... 11-7 11-6 generic address multiplexing scheme ...................................................................... 11-8 11-7 dram addressing for byte-wide memories.......................................................... 11-10 11-8 dram addressing for 16-bit wide memories........................................................ 11-10 11-9 dram addressing for 32-bit wide memories........................................................ 11-11 11-10 sdram commands ................................................................................................. 11-17 11-11 synchronous dram signal connections ................................................................ 11-17 11-12 dcr field descriptions (synchronous mode) ......................................................... 11-19 11-13 dacr0/dacr1 field descriptions (synchronous mode)...................................... 11-21 11-14 dmr0/dmr1 field descriptions............................................................................. 11-23 11-15 mcf5307 to sdram interface (8-bit port, 9-column address lines).................. 11-24 11-16 mcf5307 to sdram interface (8-bit port,10-column address lines)................. 11-24 11-17 mcf5307 to sdram interface (8-bit port,11-column address lines)................. 11-24 11-18 mcf5307 to sdram interface (8-bit port,12-column address lines)................. 11-24 11-19 mcf5307 to sdram interface (8-bit port,13-column address lines)................. 11-25 11-20 mcf5307 to sdram interface (16-bit port, 8-column address lines)................ 11-25 11-21 mcf5307 to sdram interface (16-bit port, 9-column address lines)................ 11-25 11-22 mcf5307 to sdram interface (16-bit port, 10-column address lines).............. 11-25 11-23 mcf5307 to sdram interface (16-bit port, 11-column address lines).............. 11-25 11-24 mcf5307 to sdram interface (16-bit port, 12-column address lines).............. 11-26 11-25 mcf5307to sdram interface (16-bit port, 13-column-address lines) .............. 11-26 11-26 mcf5307 to sdram interface (32-bit port, 8-column address lines)................ 11-26 11-27 mcf5307 to sdram interface (32-bit port, 9-column address lines)................ 11-26 11-28 mcf5307 to sdram interface (32-bit port, 10-column address lines).............. 11-26 11-29 mcf5307 to sdram interface (32-bit port, 11-column address lines).............. 11-27 11-30 mcf5307 to sdram interface (32-bit port, 12-column address lines).............. 11-27 11-31 sdram hardware connections............................................................................... 11-27 11-32 sdram example specifications ............................................................................. 11-34 11-33 sdram hardware connections............................................................................... 11-35 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
xxviii mcf5307 users manual tables table number title page number 11-34 dcr initialization values......................................................................................... 11-35 11-35 dacr initialization values...................................................................................... 11-36 11-36 dmr0 initialization values...................................................................................... 11-37 11-37 mode register initialization ..................................................................................... 11-38 12-1 dma signals .............................................................................................................. 12 -2 12-2 memory map for dma controller module registers................................................ 12-5 12-3 dcr n field descriptions............................................................................................ 12-8 12-4 dsrn field descriptions .......................................................................................... 12-10 13-1 general-purpose timer module memory map .......................................................... 13-3 13-2 tmr n field descriptions ........................................................................................... 13-4 13-3 tern field descriptions............................................................................................. 13-6 13-5 calculated time-out values (90-mhz processor clock) ........................................... 13-7 14-1 uart module programming model.......................................................................... 14-3 14-2 umr1 n field descriptions ......................................................................................... 14-5 14-3 umr2 n field descriptions ......................................................................................... 14-6 14-4 usr n field descriptions ............................................................................................ 14-7 14-5 ucsr n field descriptions.......................................................................................... 14-9 14-6 ucrn field descriptions............................................................................................ 14-9 14-7 uipcr n field descriptions ...................................................................................... 14-12 14-8 uacr n field descriptions ....................................................................................... 14-13 14-9 uisr n /uimr n field descriptions ........................................................................... 14-14 14-10 uivr n field descriptions ........................................................................................ 14-15 14-11 uip n field descriptions............................................................................................ 14-15 14-12 uop1/uop0 field descriptions ............................................................................... 14-16 14-13 uart module signals ............................................................................................. 14-17 14-14 uart module initialization sequence .................................................................... 14-29 15-1 parallel port pin descriptions ..................................................................................... 15-2 15-2 paddr field description .......................................................................................... 15-2 15-3 relationship between padat register and parallel port pin (pp) ........................... 15-3 16-1 pins 1?52 (left, top-to-bottom) ................................................................................ 16-1 16-2 pins 53?104 (bottom, left-to-right).......................................................................... 16-3 16-3 pins 105?156 (right, bottom-to-top)........................................................................ 16-4 16-4 pins 157?208 (top, right-to-left) ............................................................................. 16-6 16-5 dimensions ............................................................................................................... 16 -11 17-1 mcf5307 signal index............................................................................................... 17-3 17-2 data pin configuration ............................................................................................... 17-6 17-3 bus cycle size encoding............................................................................................ 17-7 17-4 bus cycle transfer type encoding............................................................................ 17-9 17-5 tm[2:0] encodings for tt = 00 (normal access)..................................................... 17-9 17-6 tm0 encoding for dma as master (tt = 01) ........................................................... 17-9 17-7 tm[2:1] encoding for dma as master (tt = 01) ................................................... 17-10 17-8 tm[2:0] encodings for tt = 10 (emulator access) ................................................ 17-10 17-9 tm[2:0] encodings for tt = 11 (interrupt level) ................................................... 17-10 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
tables xxix tables table number title page number 17-10 data pin configuration ............................................................................................. 17-12 17-11 d7 selection of cs0 automatic acknowledge ........................................................ 17-13 17-12 d6 and d5 selection of cs0 port size ..................................................................... 17-13 17-13 d4/addr_config, address pin assignment....................................................... 17-13 17-14 clkin frequency .................................................................................................... 17-13 17-15 bclko/pstclk divide ratios.............................................................................. 17-14 17-16 processor status signal encodings ........................................................................... 17-19 18-1 coldfire bus signal summary ................................................................................... 18-1 18-2 bus cycle size encoding............................................................................................ 18-3 18-3 accesses by matches in cscrs and dacrs ............................................................. 18-5 18-4 bus cycle states ......................................................................................................... 18 -6 18-5 allowable line access patterns ............................................................................... 18-12 18-6 mcf5307 arbitration protocol states ...................................................................... 18-20 18-7 coldfire bus arbitration signal summary............................................................... 18-21 18-8 cycles for basic no-wait-state external master access......................................... 18-23 18-9 cycles for external master burst line access to 32-bit port .................................. 18-24 18-10 mcf5307 two-wire bus arbitration protocol transition conditions.................... 18-28 18-11 three-wire bus arbitration protocol transition conditions ................................... 18-32 18-12 data pin configuration ............................................................................................. 18-35 19-1 jtag pin descriptions ............................................................................................... 19-3 19-2 jtag instructions....................................................................................................... 19- 5 19-3 idcode bit assignments.......................................................................................... 19-6 19-4 boundary-scan bit definitions................................................................................... 19-7 20-1 absolute maximum ratings ....................................................................................... 20-1 20-2 operating temperatures.............................................................................................. 20-1 20-3 dc electrical specifications ....................................................................................... 20-2 20-4 clock timing specification ........................................................................................ 20-2 20-5 input ac timing specification................................................................................... 20-3 20-6 output ac timing specification ................................................................................ 20-4 20-7 reset timing specification....................................................................................... 20-12 20-8 debug ac timing specification .............................................................................. 20-12 20-9 timer module ac timing specification.................................................................. 20-14 20-10 i 2 c input timing specifications between scl and sda......................................... 20-15 20-11 i 2 c output timing specifications between scl and sda ...................................... 20-15 20-12 uart module ac timing specifications ............................................................... 20-16 20-13 general-purpose i/o port ac timing specifications............................................... 20-18 20-14 dma ac timing specifications .............................................................................. 20-19 20-15 ieee 1149.1 (jtag) ac timing specifications ..................................................... 20-20 a-1 sim registers............................................................................................................... a-1 a-2 interrupt controller registers ...................................................................................... a-1 a-3 chip-select registers................................................................................................... a-2 a-4 dram controller registers ........................................................................................ a-3 a-5 general-purpose timer registers ................................................................................ a-4 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
xxx mcf5307 users manual tables table number title page number a-6 uart0 control registers............................................................................................ a-4 a-7 uart1 control registers............................................................................................ a-6 a-8 parallel port memory map........................................................................................... a-7 a-9 i 2 c interface memory map.......................................................................................... a-8 a-10 dma controller registers........................................................................................... a-8 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
about this book xxxi about this book the primary objective of this user?s manual is to de ne the functionality of the mcf5307 processors for use by software and hardware developers. the information in this book is subject to change without notice, as described in the disclaimers on the title page of this book. as with any technical documentation, it is the readers? responsibility to be sure they are using the most recent version of the documentation. to locate any published errata or updates for this document, refer to the world-wide web at http://www.motorola.com/cold re. audience this manual is intended for system software and hardware developers and applications programmers who want to develop products for the mcf5307. it is assumed that the reader understands operating systems, microprocessor system design, basic principles of software and hardware, and basic details of the coldfire architecture. organization following is a summary and a brief description of the major sections of this manual:  chapter 1, ?overview,? includes general descriptions of the modules and features incorporated in the mcf5307, focussing in particular on new features.  part i is intended for system designers who need to understand the operation of the mcf5307 coldfire core. ? chapter 2, ?coldfire core,? provides an overview of the microprocessor core of the mcf5307. the chapter begins with a description of enhancements from the v2 coldfire core, and then fully describes the v3 programming model as it is implemented on the mcf5307. it also includes a full description of exception handling, data formats, an instruction set summary, and a table of instruction timings. ? chapter 3, ?hardware multiply/accumulate (mac) unit,? describes the mcf5307 multiply/accumulate unit, which executes integer multiply, multiply-accumulate, and miscellaneous register instructions. the mac is integrated into the operand execution pipeline (oep). f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
xxxii mcf5307 users manual organization ? chapter 4, ?local memory.? this chapter describes the mcf5307 implementation of the coldfire v3 local memory speci cation. it consists of the two following major sections. ? section 4.2, ?sram overview,? describes the mcf5307 on-chip static ram (sram) implementation. it covers general operations, con guration, and initialization. it also provides information and examples showing how to minimize power consumption when using the sram. ? section 4.7, ?cache overview,? describes the mcf5307 cache implementation, including organization, con guration, and coherency. it describes cache operations and how the cache interacts with other memory structures. ? chapter 5, ?debug support,? describes the revision c enhanced hardware debug support in the mcf5307. this revision of the coldfire debug architecture encompasses earlier revisions.  part ii, ?system integration module (sim),? describes the system integration module, which provides overall control of the bus and serves as the interface between the coldfire core processor complex and internal peripheral devices. it includes a general description of the sim and individual chapters that describe components of the sim, such as the phase-lock loop (pll) timing source, interrupt controller for peripherals, con guration and operation of chip selects, and the sdram controller. ? chapter 6, ?sim overview,? describes the sim programming model, bus arbitration, and system-protection functions for the mcf5307. ? chapter 7, ?phase-locked loop (pll),? describes con guration and operation of the pll module. it describes in detail the registers and signals that support the pll implementation. ? chapter 8, ?i 2 c module,? describes the mcf5307 i 2 c module, including i 2 c protocol, clock synchronization, and the registers in the i 2 c programing model. it also provides extensive programming examples. ? chapter 9, ?interrupt controller,? describes operation of the interrupt controller portion of the sim. includes descriptions of the registers in the interrupt controller memory map and the interrupt priority scheme. ? chapter 10, ?chip-select module,? describes the mcf5307 chip-select implementation, including the operation and programming model, which includes the chip-select address, mask, and control registers. ? chapter 11, ?synchronous/asynchronous dram controller module,? describes con guration and operation of the synchronous/asynchronous dram controller component of the sim. it begins with a general description and brief glossary, and includes a description of signals involved in dram operations. the remainder of the chapter is divided between descriptions of asynchronous and synchronous operations. f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
about this book xxxiii organization  part iii, ?peripheral module,? describes the operation and con guration of the mcf5307 dma, timer, uart, and parallel port modules, and describes how they interface with the system integration unit, described in part ii. ? chapter 12, ?dma controller module,? provides an overview of the dma controller module and describes in detail its signals and registers. the latter sections of this chapter describe operations, features, and supported data transfer modes in detail, showing timing diagrams for various operations. ? chapter 13, ?timer module,? describes con guration and operation of the two general-purpose timer modules, timer 0 and timer 1. it includes programming examples. ? chapter 14, ?uart modules,? describes the use of the universal asynchronous/synchronous receiver/transmitters (uarts) implemented on the mcf5307 and includes programming examples. ? chapter 15, ?parallel port (general-purpose i/o),? describes the operation and programming model of the parallel port pin assignment, direction-control, and data registers. it includes a code example for setting up the parallel port.  part iv, ?hardware interface,? provides a pinout and both electrical and functional descriptions of the mcf5307 signals. it also describes how these signals interact to support the variety of bus operations shown in timing diagrams. ? chapter 16, ?mechanical data,? provides a functional pin listing and package diagram for the mcf5307. ? chapter 17, ?signal descriptions,? provides an alphabetical listing of mcf5307 signals. this chapter describes the mcf5307 signals. in particular, it shows which are inputs or outputs, how they are multiplexed, which signals require pull-up resistors, and the state of each signal at reset. ? chapter 18, ?bus operation,? describes data transfers, error conditions, bus arbitration, and reset operations. it describes transfers initiated by the mcf5307 and by an external bus master, and includes detailed timing diagrams showing the interaction of signals in supported bus operations. note that chapter 11, ?synchronous/asynchronous dram controller module,? describes dram cycles. ? chapter 19, ?ieee 1149.1 test access port (jtag),? describes con guration and operation of the mcf5307 jtag test implementation. it describes the use of jtag instructions and provides information on how to disable jtag functionality. ? chapter 20, ?electrical speci cations,? describes ac and dc electrical speci cations and thermal characteristics for the mcf5307. because additional speeds may have become available since the publication of this book, consult motorola?s coldfire web page, http://www.motorola.com/cold re, to con rm that this is the latest information. f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
xxxiv mcf5307 users manual suggested reading this manual includes the following appendix:  appendix a, ?list of memory maps,? lists the entire address-map for mcf5307 memory-mapped registers. this manual also includes a glossary and an index. suggested reading this section lists additional reading that provides background for the information in this manual as well as general information about the coldfire architecture. general information the following documentation provides useful information about the coldfire architecture and computer architecture in general: coldfire documentation the coldfire documentation is available from the sources listed on the back cover of this manual. document order numbers are included in parentheses for ease in ordering.  coldfire programmers reference manual, r1.0 (mcf5200prm/ad)  user?s manuals?these books provide details about individual coldfire implementations and are intended to be used in conjunction with the coldfire programmers reference manual. these include the following: ? coldfire mcf5102 users manual (mcf5102um/ad) ? coldfire mcf5202 users manual (mcf5202um/ad) ? coldfire mcf5204 users manual (mcf5204um/ad) ? coldfire mcf5206 users manual (mcf5206eum/ad) ? coldfire mcf5206e users manual (mcf5206eum/ad)  coldfire programmers reference manual, r1.0 (mcf5200prm/ad)  using microprocessors and microcomputers: the motorola family, william c. wray, ross bannatyne, joseph d. green eld additional literature on coldfire implementations is being released as new processors become available. for a current list of coldfire documentation, refer to the world wide web at http://www.motorola.com/coldfire/. conventions this document uses the following notational conventions: mnemonics in text, instruction mnemonics are shown in uppercase. mnemonics in code and tables, instruction mnemonics are shown in lowercase. f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
about this book xxxv acronyms and abbreviations italics italics indicate variable command parameters. book titles in text are set in italics. 0x0 pre x to denote hexadecimal number 0b0 pre x to denote binary number reg[field] abbreviations for registers are shown in uppercase. speci c bits, elds, or ranges appear in brackets. for example, rambar[ba] identi es the base address eld in the ram base address register. nibble a 4-bit data unit byte an 8-bit data unit word a 16-bit data unit longword a 32-bit data unit x in some contexts, such as signal encodings, x indicates a don?t care. n used to express an unde ned numerical value not logical operator & and logical operator | or logical operator acronyms and abbreviations table i lists acronyms and abbreviations used in this document. table i. acronyms and abbreviated terms term meaning adc analog-to-digital conversion alu arithmetic logic unit avec autovector bdm background debug mode bist built-in self test bsdl boundary-scan description language codec code/decode dac digital-to-analog conversion dma direct memory access dsp digital signal processing ea effective address edo extended data output (dram) fifo first-in, ?st-out f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
xxxvi mcf5307 users manual acronyms and abbreviations gpio general-purpose i/o i 2 c inter-integrated circuit ieee institute for electrical and electronics engineers ifp instruction fetch pipeline ipl interrupt priority level jedec joint electron device engineering council jtag joint test action group lifo last-in, ?st-out lru least recently used lsb least-signi?ant byte lsb least-signi?ant bit mac multiple accumulate unit mbar memory base address register msb most-signi?ant byte msb most-signi?ant bit mux multiplex nop no operation oep operand execution pipeline pc program counter pclk processor clock pll phase-locked loop plru pseudo least recently used por power-on reset pqfp plastic quad ?t pack risc reduced instruction set computing rx receive sim system integration module sof start of frame tap test access port ttl transistor-to-transistor logic tx transmit uart universal asynchronous/synchronous receiver transmitter table i. acronyms and abbreviated terms (continued) term meaning f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
about this book xxxvii terminology and notational conventions terminology and notational conventions table ii shows notational conventions used throughout this document. table ii notational conventions instruction operand syntax opcode wildcard cc logical condition (example: ne for not equal) register speci?ations an any address register n (example: a3 is address register 3) ay,ax source and destination address registers, respectively dn any data register n (example: d5 is data register 5) dy,dx source and destination data registers, respectively rc any control register (example vbr is the vector base register) rm mac registers (acc, mac, mask) rn any address or data register rw destination register w (used for mac instructions only) ry,rx any source and destination registers, respectively xi index register i (can be an address or data register: ai, di) register names acc mac accumulator register ccr condition code register (lower byte of sr) macsr mac status register mask mac mask register pc program counter sr status register port name pstddata processor status/debug data port miscellaneous operands # immediate data following the 16-bit operation word of the instruction effective address y,x source and destination effective addresses, respectively


▲Up To Search▲   

 
Price & Availability of MCF5307AI90B

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X